Skip to content

[BLOCKED on MockBukkit 26.2] Compile against literal Minecraft 26.2#2994

Draft
tastybento wants to merge 1 commit into
developfrom
feature/paper-26-2-mockbukkit
Draft

[BLOCKED on MockBukkit 26.2] Compile against literal Minecraft 26.2#2994
tastybento wants to merge 1 commit into
developfrom
feature/paper-26-2-mockbukkit

Conversation

@tastybento

Copy link
Copy Markdown
Member

Warning

Draft — DO NOT MERGE. Blocked on a MockBukkit build for Minecraft 26.2.
CI will stay red until then. Stacked on #2993 (base = feature/paper-26-2-support); retarget to develop once #2993 merges.

Purpose

#2993 ships 26.2 support but compiles against 26.1.2 because no MockBukkit supports 26.2 yet. This draft parks the small forward delta that moves us to compiling against the literal 26.2 API, so the day MockBukkit 26.2 lands it's a ~2-minute finish.

What changes vs #2993

  • paperVersion26.2.build.25-alphaEntityType.SULFUR_CUBE and the new 26.2 materials become available at compile time. ✅ compiles cleanly.
  • The three SULFUR_CUBE fields revert to static final (the non-final + reflection-injection workaround was only needed because the constant was absent under 26.1.2).
  • The Sulfur Cube tests use EntityType.SULFUR_CUBE directly and drop the stand-in injection helpers — the clean target form.

The one remaining blocker

MockBukkit has no 26.2 build, and mockbukkit-v26.1.2 throws on 26.2's new minecraft:sulfur_cube_archetype registry, so the suite can't initialise (InternalDataLoadException). To finish:

🤖 Generated with Claude Code

…26.2)

Forward-looking delta on top of the 26.2-support PR, parked as a draft until a
MockBukkit build for 26.2 exists. It moves the build from "compile against
26.1.2, support 26.2 at runtime" to "compile against 26.2 directly":

- paperVersion -> 26.2.build.25-alpha, so EntityType.SULFUR_CUBE and the new
  26.2 materials are available at compile time.
- SULFUR_CUBE fields revert to `static final` (no test injection needed once the
  real constant exists); the Sulfur Cube tests use EntityType.SULFUR_CUBE
  directly instead of injecting a stand-in type, dropping the reflection helpers.

The only remaining blocker is the test dependency: MockBukkit has no 26.2 build,
and mockbukkit-v26.1.2 throws on 26.2's new `minecraft:sulfur_cube_archetype`
registry, so the suite cannot initialise. The code compiles cleanly against
26.2; to finish, switch the testImplementation coordinate to mockbukkit-v26.2.

DO NOT MERGE until MockBukkit ships 26.2 support.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Base automatically changed from feature/paper-26-2-support to develop June 21, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant